package com.bbzn.device.client.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.bbzn.device.client.dataobject.AqiHis;
import java.util.List;
import com.bbzn.device.client.dao.history.AqiHisMapper;
import com.bbzn.device.client.service.AqiHisService;

@Service
public class AqiHisServiceImpl implements AqiHisService {

    @Resource
    private AqiHisMapper aqiHisMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return aqiHisMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(AqiHis record) {
        return aqiHisMapper.insert(record);
    }

    @Override
    public int insertOrUpdate(AqiHis record) {
        return aqiHisMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(AqiHis record) {
        return aqiHisMapper.insertOrUpdateSelective(record);
    }

    @Override
    public int insertSelective(AqiHis record) {
        return aqiHisMapper.insertSelective(record);
    }

    @Override
    public AqiHis selectByPrimaryKey(Long id) {
        return aqiHisMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(AqiHis record) {
        return aqiHisMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(AqiHis record) {
        return aqiHisMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<AqiHis> findByAll(AqiHis aqiHis) {
        return aqiHisMapper.findByAll(aqiHis);
    }

    @Override
    public int updateBatch(List<AqiHis> list) {
        return aqiHisMapper.updateBatch(list);
    }

    @Override
    public int updateBatchSelective(List<AqiHis> list) {
        return aqiHisMapper.updateBatchSelective(list);
    }

    @Override
    public int batchInsert(List<AqiHis> list) {
        return aqiHisMapper.batchInsert(list);
    }

    @Override
    public int deleteByImei(String imei) {
        return aqiHisMapper.deleteByImei(imei);
    }
}

